import request from '@/utils/request'

// 查询车票信息
export function queryTicket(params) {
	return request({
		url: '/ticket-service/ticket/query',
		headers: {
			isToken: true,
			repeatSubmit: false
		},
		method: 'get',
		params
	})
}

// 查询所有站点
export function queryAllStation() {
	return request({
		url: '/ticket-service/station/all',
		headers: {
			isToken: true,
			repeatSubmit: false
		},
		method: 'get'
	})
}

// 经停站查询
export function queryTrainStation(trainId) {
	return request({
		url: '/ticket-service/train-station/query',
		headers: {
			isToken: true,
			repeatSubmit: false
		},
		method: 'get',
		params: { trainId }
	})
}